package com.edu.mapper;

import com.edu.bean.Book;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface BookMapper {
    List<Book> selectBookByCondition(@Param("book") Book book, @Param("startDate") Date startDate, @Param("endDate") Date endDate);


    int insertBook(Book book);

    int deleteBook(int bookId);

    Book selectBookById(int bookId);

    int updateBook(Book book);

    int updateBookCover(@Param("bookId") int bookId,@Param("bookCover") String bookCover);
}
